package com.yonyou.brigade.basic_init.dao;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yonyou.brigade.basic_init.model.BriChannel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-06-06
 */
public interface BriChannelMapper extends BaseMapper<BriChannel> {

    List<BriChannel> getEnableChannelByChannelAndOrgs(@Param("tenantId") String tenantId, @Param("orgs") JSONArray orgs, @Param("channel") String channel);
}